- closeChannel
DiscordResult closeChannel(DiscordNetworkPeerId peerId, DiscordNetworkChannelId channelId)
Close a message channel to a connected peer.
- closePeer
DiscordResult closePeer(DiscordNetworkPeerId peerId)
Close the connection to a remote peer.
- flush
DiscordResult flush()
Send pending network messages.
- getPeerId
void getPeerId(DiscordNetworkPeerId* peerId)
Get the local peer ID for this process.
- openChannel
DiscordResult openChannel(DiscordNetworkPeerId peerId, DiscordNetworkChannelId channelId, bool reliable)
Open a message channel to a connected peer.
- openPeer
DiscordResult openPeer(DiscordNetworkPeerId peerId, const(char)* routeData)
Open a connection to a remote peer.
- sendMessage
DiscordResult sendMessage(DiscordNetworkPeerId peerId, DiscordNetworkChannelId channelId, ubyte* data, uint dataLength)
Send a message to a connected peer over an opened message channel.
- updatePeer
DiscordResult updatePeer(DiscordNetworkPeerId peerId, const(char)* routeData)
Update the route data for a connected peer.